package com.afalon.cloud.contracts.finance;

import java.math.BigDecimal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
@XmlRootElement(name = "budgetline")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class BudgetLine 
{
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String budgetlineid;
	
	@Persistent
	private BigDecimal credit;
	
	@Persistent
	private BigDecimal debit;
	
	@Persistent
	private String budgetid;
	
	@Persistent
	private String accountid;

	public BudgetLine() 
	{
		
	}

	public void setBudgetlineid(String value) {
		// Do nothing.
	}
	
	public String getBudgetlineid() {
		return budgetlineid;
	}

	public void setCredit(BigDecimal value) {
		credit = value;
	}

	public BigDecimal getCredit() {
		return credit;
	}

	public void setDebit(BigDecimal value) {
		debit = value;
	}

	public BigDecimal getDebit() {
		return debit;
	}

	public void setBudgetid(String value) {
		budgetid = value;
	}

	public String getBudgetid() {
		return budgetid;
	}

	public void setAccountid(String value) {
		accountid = value;
	}

	public String getAccountid() {
		return accountid;
	}
	
}
